package com.slz3.business.module.goodsManagement.gooBrandRecommendGoods.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.goodsManagement.gooBrandRecommendGoods.domain.GooBrandRecommendGoods;
import com.slz3.business.module.goodsManagement.gooBrandRecommendGoods.domain.GooBrandRecommendGoodsCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class GooBrandRecommendGoodsResAtomic extends GooBrandRecommendGoodsResExecutor {

    public Mono<ServerResponse> add_$GooBrandRecommendGoodsUpdateLock(ServerRequest req, GooBrandRecommendGoods gooBrandRecommendGoods) {
        return GooBrandRecommendGoodsResSafeValid.add(req, gooBrandRecommendGoods) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, gooBrandRecommendGoods);
    }

    public Mono<ServerResponse> delete_$GooBrandRecommendGoodsUpdateLock(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        return GooBrandRecommendGoodsResSafeValid.delete(req, gooBrandRecommendGoodsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$GooBrandRecommendGoodsUpdateLock(ServerRequest req, GooBrandRecommendGoods gooBrandRecommendGoods) {
        return GooBrandRecommendGoodsResSafeValid.modify(req, gooBrandRecommendGoods) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, gooBrandRecommendGoods);
    }

    public Mono<ServerResponse> info_$GooBrandRecommendGoodsUpdateLock(ServerRequest req) {
        return GooBrandRecommendGoodsResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$GooBrandRecommendGoodsUpdateLock(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        return GooBrandRecommendGoodsResSafeValid.auditSubmit(req, gooBrandRecommendGoodsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$GooBrandRecommendGoodsUpdateLock(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        return GooBrandRecommendGoodsResSafeValid.audit(req, gooBrandRecommendGoodsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$GooBrandRecommendGoodsUpdateLock(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        return GooBrandRecommendGoodsResSafeValid.auditReject(req, gooBrandRecommendGoodsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$GooBrandRecommendGoodsUpdateLock(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        return GooBrandRecommendGoodsResSafeValid.usingEnable(req, gooBrandRecommendGoodsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$GooBrandRecommendGoodsUpdateLock(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        return GooBrandRecommendGoodsResSafeValid.usingDisable(req, gooBrandRecommendGoodsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
